<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php

/**
 * PENGUIN
 * Default layout
 * 
 * @package PENGUIN
 * @subpackage Layout
 * @author hungtd <hungtd@vng.com.vn>
 * @copyright VNG
 * @version 1.0.0
 */
?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?=$MainTitle;?></title>        
        
        <link href="<?=base_url();?>static/<?=config_item('penguin_theme');?>/css/admin-style.css" rel="stylesheet" type="text/css" media="screen" />
        <?php if ($pgRel) { echo $pgRel; } ?>
        
        <script type="text/javascript" src="<?=base_url();?>static/<?=config_item('penguin_theme');?>/js/jquery-1.6.4.js"></script>
        <script type="text/javascript" src="<?=base_url();?>static/<?=config_item('penguin_theme');?>/js/jquery.livequery.js"></script>
        <?php if ($pgJavascript) { echo $pgJavascript; } ?>
        <script type="text/javascript" src="<?=base_url();?>static/<?=config_item('penguin_theme');?>/js/admin/common.js"></script>
    </head>
    
    <body>
        <div id="MainWeb">
            <div id="MainHeader">
                <div class="site-logo"><?=config_item('penguin_site_name');?></div>
                <div class="user-login">
                    <?=lang('User Login') . ': ' . $this->session->userdata('user_username');?> 
                    ( <?=anchor('users/', lang('Home'));?> | <?=anchor('users/logout', lang('Logout'));?> )
                </div>
            </div>
            <!-- end #MainHeader -->
            
            <div id="MainMenu">
                <ul class="nav">
                    <? @include_once FPENGUIN . 'media/global_cache/html/admin_menu.php';?>
                </ul>
            </div>
            <!-- end #MainMenu -->
            
            <div id="MainContent">
                <div class="noticMessage">
                    <?php
                        if ($this->session->flashdata('error_message'))
                        {
                            echo '<div class="flash_message ferror">' . $this->session->flashdata('error_message') . '</div>';
                        } 
                        
                        if ($this->session->flashdata('warning_message'))
                        {
                            echo '<div class="flash_message fwarning">' . $this->session->flashdata('warning_message') . '</div>';
                        }
                        
                        if ($this->session->flashdata('susscess_message'))
                        {
                            echo '<div class="flash_message fsuccess">' . $this->session->flashdata('susscess_message') . '</div>';
                        }
                    ?>
                </div>
                
                <div class="boxContent">
                    <div class="left"></div>
                    <div class="right"></div>
                    <?=$MainContent;?>                    
                </div>                
            </div>
            <!-- end #MainContent -->
            
            <div id="MainFooter">
                <p>Copyright (c) 2010 <?=config_item('penguin_site');?>. All rights reserved. Design by <a href="<?=config_item('penguin_site');?>"><?=config_item('penguin_site_name');?></a>.</p>
                <p><?=lang('Time load');?>: <span style="font-weight:700;">{elapsed_time}</span></p>
            </div>
            <!-- end #MainFooter -->
            
        </div>
    </body>
</html>